
package combat.dudes.client.net;

import combat.dudes.client.ClientApp;
import combat.dudes.client.gui.threads.ClientThread;
import combat.dudes.client.gui.threads.ClientThread.ClientThreadType;


/**
 * Starts the NET_SIM and NET_CHAT threads, no mo', no less
 * @author Laurens Andriessen
 */
public class ClientNetworking {

	public static ClientThread net_sim = new ClientThread(ClientThreadType.NET_SIM);
	public static ClientThread net_chat = new ClientThread(ClientThreadType.NET_CHAT);

	public static ClientThread[] net_threads = {
			net_sim, net_chat
	};

	public ClientNetworking() {

		try {
			for(ClientThread thread : net_threads)
				thread.start();
		} catch(Exception e) {
			ClientApp.onError("A NET-thread could not be started.", e, true);
		}

	}

}
